<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>文件上传下载</title>
</head>
<body>
    <h3>文件上传</h3>
    <form action="/api/upload" method="post" enctype="multipart/form-data">
        请选择文件：<input type="file" name="file"/>
        <input type="submit" value="上传文件">
    </form>

    <h3>文件下载</h3>
    <a href="/api/download?filename=2020-12-13_080921.png">2020-12-13_080921.png</a> <br>
    <a href="/api/download?filename=SpringMVC上传文件.docx">SpringMVC上传文件.docx</a>
</body>
</html>
